import $axios from "@/utils/request";
import type { IloginForm, IResponse, IUser } from "../typings";

export default {
  login: (data: IloginForm) => $axios.post<any, IResponse<IUser | null>>('/user/login', data),
  getInfo: () => $axios.get<any, IResponse<string>>('/user/info')
}